Method and System for Modeling Subjects from a Depth Map

ABSTRACT

A method for modeling and tracking a subject using image depth data includes locating the subject&#39;s trunk in the image depth data and creating a three-dimensional (3D) model of the subject&#39;s trunk. Further, the method includes locating the subject&#39;s head in the image depth data and creating a 3D model of the subject&#39;s head. The 3D models of the subject&#39;s head and trunk can be exploited by removing pixels from the image depth data corresponding to the trunk and the head of the subject, and the remaining image depth data can then be used to locate and track an extremity of the subject.

FIELD OF THE INVENTION

The present invention relates to tracking a subject using depth sensor technology, and more particularly, to tracking a subject employing a three-dimensional model for a trunk of the subject.

BACKGROUND

Capturing the movements of a subject is useful for many applications. For example, in the video game industry, movements of a player are used to control the movement and actions of a character in a game. The movement of a subject can also be used in the fields of motion pictures, automatic device control, security, and surveillance, to name a few. Identifying and tracking the movements of a subject is one of the primary objectives of the field of computer vision. Several different technologies have been created to track the movements of a subject.

The technology chosen to track the movement of a subject depends first on the purpose for tracking that subject. Further, the technology chosen depends on several other factors, such as the environment in which the subject is located, the ability to have the subject wear and/or use special equipment, and the desired precision of the tracking. For example, in the motion picture and computer animation industry, motion capture suits are used to track the positions of the subject's joints in high resolution. In home entertainment, video game consoles rely on data from controllers, or other devices, that the subject manipulates or interacts with to track the subject's movements. These devices use accelerometers and/or weight-measuring scales to obtain data about the subject's movements. However, relying on physical sensors and devices has obvious limitations, one of those being that special equipment must be held by or located on the subject. Alternatively, conventional video cameras have been employed to track the movements of a subject. However, robust and reliable joint tracking using conventional video cameras is a very challenging problem. Some of the challenges associated with using conventional video cameras include ambient light changes, segmentation problems, and occlusion.

SUMMARY

The techniques introduced here can be used to obtain or estimate positions of a subject's joints using image depth data taken of the subject, typically generated by one or more depth sensors. Techniques include locating and modeling a subject's trunk, using a location of the subject's trunk to locate and model the subject's head, and using the location of the subject's trunk and head to locate and model the subject's arms and legs. The techniques described here do not require explicit knowledge of the depth sensor's parameters (such as field-of-view of focal length) or orientation. Further, the techniques do not require a depth sensor calibration phase. Rather, the techniques construct and adapt a model of the subject automatically according to any arbitrary orientation and position of the subject. In addition, the techniques construct a model of the subject's articulation, based on the image depth data and the computation of the location of the subject's joints.

One possible result of the techniques described here is a three-dimensional model of the estimated positions of the subject's joints at a given point in time. The positions of the joints can be used as input into various applications, including tracking the path of a subject in some arbitrary space and translating one-to-one movements onto a character in a video game (as described, for example, in U.S. patent application Ser. No. 12/392,879, “Method and system for interactive fitness training program”). In addition, the positions of the joints can be used to recognize the subject's gestures (as detailed in U.S. patent application Ser. No. 11/866,280 and U.S. patent application Ser. No. 12/707,340).

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A is a block diagram of a system for tracking a subject according to the techniques introduced here.

FIG. 1B is a block diagram of a system for tracking multiple subjects according to the techniques introduced here.

FIG. 2 is a block diagram of a subject tracking engine.

FIG. 3 is a flow diagram of a process for tracking a subject according to the techniques introduced here.

FIG. 4 is a diagram of an example three-dimensional model of a torso and a head of a human subject.

FIG. 5 is a flow diagram of an example process for modeling the arms of a human subject according to the techniques introduced here.

FIG. 6 shows several examples of arm blobs obtained by using image depth data and the techniques introduced here.

FIG. 7 is a block diagram of an example tracking system using a gesture classification system.

FIG. 8 is a block diagram of an example tracking system and gesture classification system incorporated into an interactive program accessed by multiple users over a network.

FIG. 9 is a block diagram of an example tracking system and gesture classification system incorporated into an interactive program accessed by a player over a network

DETAILED DESCRIPTION

The techniques introduced here identify and track a subject's joints based on data obtained from depth sensors. With the limitations of previous methods taken into consideration, depth sensors have been introduced to track the movements of a subject. A depth sensor obtains the distance between the sensor and the objects in front of it. The data from a depth sensor can be useful in solving many of the problems regarding conventional video cameras discussed above.

A depth sensor is any sensor that obtains depth data for each pixel captured by the sensor, where depth refers to the distance between an object and the sensor itself. There are several different types of depth sensors, including sensors that rely on time-of-flight, structured light, or the use of laser speckle pattern technology. Stereoscopic cameras can also be used as a depth sensor. In every case, these sensors generate an image with a fixed resolution of pixels, where each pixel has a value (typically, an integer value), and these values represent the distance of the object projected onto a corresponding region of the image from the sensor. In addition to depth data, the sensors may also generate color data in a similar manner as conventional color cameras, and this data can be combined with the depth data for use in processing.

A binary mask can be created from the image using the depth data. A binary mask is an image of the same resolution as the original image, but all pixels have integer values corresponding to either 0 or 1. Typically, a threshold value is determined, and each pixel receives a value of 0 in the binary mask if the pixel value is below the threshold and 1 if the pixel value is above the threshold. For example, in the case of a subject standing in front of the depth sensor, the binary mask is generated (and thus the threshold computed) so that pixels corresponding to the subject's body are 1, and all other pixels are 0. Effectively then, the binary mask is the silhouette of the subject, as captured by the camera.

A blob is a collection of pixels of interest in the image depth data obtained from a depth sensor. Typically, a blob is a collection of connected pixels having similar values. For example, a blob can be the collection of pixels associated with the subject, or with a component of the subject, such as one extremity. An articulated figure is a collection of joints connected to each other in some pre-determined way and constrained to move in certain ways, e.g., a skeleton. For ease of explanation, the techniques introduced here refer to tracking a human form, however the process can be adapted to track other subjects, for example, an animal, using models that represent the motion of the subject.

In one embodiment, the techniques introduced here use an inverse kinematics (IK) solver. Given a desired configuration of an articulated figure (e.g., the positions of certain joints of a figure) an IK solver uses the desired configuration to compute the angles of the joints in the articulated figure in order to obtain the locations of the other joints of the figure. For example, for a human figure, given the locations of the wrist and shoulder, an IK solver can compute the angles of the shoulder and elbow joints that yield these wrist and shoulder locations. The IK solver thereby also effectively computes the location of the elbow joint.

FIG. 1A is a block diagram of a system for tracking a subject according to the techniques introduced here. The system 100 includes a depth sensor 110, a background manager 120, a subject manager 130, and a subject tracking engine 200. The block diagram also includes flow arrows to depict how image depth data is transferred from the depth sensor and how the image depth data is passed between the elements of the system 100.

The depth sensor 110 acquires data corresponding to the scene detected by the sensor. The image depth data from the depth sensor 110 is sent to the background manager 120, where the background of the image is separated from the foreground. The techniques introduced here relate to the data from the foreground of the image, which contains the pixels representing the subject. To facilitate the background subtraction that is done for every image obtained from the depth sensor, a model of the background is stored and updated regularly. The background manager 120 manages the model of the background using image depth data passed from the depth sensor 110, as well as the subject manager 130. Initially, the background manager 120 constructs a model of the background of the scene only from the image depth data sent from the depth sensor 110. Then the background model is dynamically updated using image depth data from the depth sensor 110 and data from the subject manager 130.

The background manager 120 separates the image depth data in the foreground from the background and sends the image depth data from the foreground to the subject manager 130. The subject manager 130 determines which blobs in the image depth data likely represent the subject. The subject manager 130 sends the image depth data that does not correspond to the subject back to the background manager 120 to be used in updating the background model. The blob(s) which the subject manager 130 has determined correspond to the subject are passed to the subject tracking engine 200.

The subject tracking engine 200 receives as an input, from the subject manager 130, a blob corresponding to one subject. If the subject manager 120 determines that different blobs correspond to different subjects, each blob is passed independently to the subject tracking engine 200. In one embodiment, the system includes multiple subject tracking engines 200. FIG. 1B is an example block diagram of a system 100A in which multiple subjects are tracked, and the blobs corresponding to each subject are passed independently to separate instances of the subject tracking engine 200-1 through 200-N.

FIG. 2 is a block diagram of an example subject tracking engine 200. The subject tracking engine 200 includes a torso tracking engine 210, a pelvis location engine 220, a 3D (three-dimensional) torso modeling engine 230, a head tracking engine 240, an arm tracking engine 250, and a leg tracking engine 260. The various engines included in the subject tracking engine 200 can be implemented in software, hardware, firmware or a combination thereof. As described above, the subject tracking engine 200 receives a blob corresponding to a subject. The blob is a subset of the image depth data pixels obtained from the depth sensor.

FIG. 3 is a flow diagram of a process for tracking a subject according to the techniques introduced here. The process is organized as a sequence of operations in the flowchart 300. However, it should be understood that at least some of the operations associated with this process can potentially be reordered, supplemented, or substituted for while still performing the same overall technique.

Initially, at 302, the torso tracking engine 210 determines a two-dimensional location of the torso, or trunk, of the subject in the image depth data received from the subject manager 130. The two-dimensional location of the torso does not take into account the depth information included in the image depth data. Initially, the torso tracking engine 210 estimates the location of the torso from the image pixels using ad hoc methods. However, once the location of the torso has been identified using ad hoc methods, the torso tracking engine 210 tracks the torso in subsequent frames using a motion model representative of the movement of a human torso in conjunction with the image depth data received from the subject manager 130.

The two-dimensional location of the torso of the subject and the blob representing the subject are passed to the pelvis location engine 220. At 304, the pelvis location engine 220 uses the two-dimensional location of the torso and the blob representing the subject to determine the two-dimensional location of the pelvis of the subject.

The location of the pelvis, torso, and the image depth data are passed to the 3D torso modeling engine, where, at 306, a three-dimensional model of the subject's torso is constructed. The 3D torso modeling engine 306 uses the depth component of the image depth data to construct the three-dimensional model. Thus, the model is a true three-dimensional model having location information on three axes. When using a two-dimensional model, the extremities are not distinguishable from the torso, and the result is the inclusion of at least part of the extremities with the torso. However, with a three-dimensional model of the torso, the extremities can be distinguished from the torso, even if the extremities are positioned in front of the torso, due to the depth information in the pixels. The three-dimensional model of the torso can be either parametric or non-parametric. In one embodiment, the three-dimensional model of the torso is a parametric cylinder model, and the parameters of the cylinder are computed using a least-squares approximation based on the image depth data corresponding to the torso of the subject.

Once a three-dimensional model of the torso has been constructed, the model is passed, along with the blob representing the subject, to the head tracking engine 240. At 308, the head tracking engine 240 locates the head of the subject using the three-dimensional model of the torso and the blob representing the subject. There are several strong assumptions that can be used to assist in locating the head of the subject, for example, searching for the head based on the orientation of the major axis of the torso, and assuming that the head is located above the torso. FIG. 4, which is a diagram of an example three-dimensional model of a torso 402 and a head 404 of a human subject, shows how these assumptions can be exploited. The three-dimensional model of the torso includes a major axis 406 along which the head 404 should be located, as shown in FIG. 4. Once the head tracking engine 240 has initially located the head of the subject, that location can be used in conjunction with the image depth data to locate the head of the subject in subsequent frames. The head tracking engine 240 also creates a three-dimensional model of the subject's head.

The three-dimensional models of the subject's torso and head, along with their locations, are passed with the image depth data to the arm tracking engine 250. At 310, the arm tracking engine 250 uses the three-dimensional models of the subject's torso and head, along with the blob corresponding to the subject, to locate the arms of the subject. The process of locating the subject's arms is described in further detail below with reference to FIG. 5. The arm tracking engine 250, can further employ an IK solver to provide additional information for processing the location of the subject's arms.

There are several important advantages in using an IK solver to provide additional information to the tracking modules. First, the IK solver model effectively smoothes the data, thereby minimizing the effects of sensor noise. Second, the data points obtained from the tracking module necessarily correspond to pixels of value “1” on the binary mask (that is, they fall on the silhouette of the subject). There is no such restriction pertaining to the data obtained by the IK solver. To give a specific example, the subject may be standing close to the edge of the sensor's field of view. In this case, when the subject reaches out to the side, the end of the subject's arm will be out of the field of view of the sensor. In spite of this, the IK solver can compute that the subject's arm is reaching out of the field of view and return the location of the subject's hand. Obviously, there is no way to do this using only the data from the sensor. A third advantage in using the IK solver is in dealing with occlusions. For example, often, the subject's hand will occlude the sensor's view of the subject's elbow. Consequently, no data corresponding to the elbow can be sampled from the image depth data (since its location is unknown). Given the locations of the hand and shoulder, however, the IK solver is able to calculate the approximate position of the elbow as well.

The location of the arms, along with all of the information that the arm tracking engine 250 received are passed to the leg tracking engine 260. At 312, the leg tracking engine 260 locates the subject's legs. The leg tracking engine 260 uses the location of the head, torso, and arms of the subject to remove the pixels associated with the torso, the head, and each arm, from the image depth data, leaving only pixels associated with the subject's legs. Having only the pixels corresponding to the subject's legs, the leg tracking engine 260 identifies a left and a right leg. Further, the leg tracking engine 260 can use an IK solver to determine the location of the knee and ankle joints for each of the subject's legs.

FIG. 5 is a flow diagram of an example process for modeling the arms of a subject according to the techniques introduced here. The process is organized as a sequence of operations in the flowchart 500. However, it should be understood that at least some of the operations associated with this process can potentially be reordered, supplemented, or substituted for while still performing the same overall technique.

In one embodiment, the arm tracking engine 250 performs the operations associated with the process 500. The arm tracking engine 250 receives the blob representing the subject, including image depth data, and the three-dimensional models representing the subject's torso and head. At 502, pixels corresponding to the subject's head and torso, which have previously been located and modeled, are removed from the image depth data. The three-dimensional nature of the image depth data allows the arm tracking engine 250 to remove only the pixels that fall within the head and torso models, leaving the pixels corresponding to objects in front of the torso and the head. As part of this step, the arm tracking engine 250 can remove other blobs that heuristically do not likely correspond to the subject's arms, for example, blobs due to the noisy nature of the sensor data. FIG. 6 depicts several examples of arm blobs obtained by using image depth data and the techniques described herein.

At 504, the arm tracking engine 250 determines how many blobs corresponding to an arm of the subject are found in the image depth data after the torso, head, and other blobs have been removed. There is a limit to the number of arm blobs that can be present in the image depth data (zero, one, or two). The arm tracking engine 250 proceeds from decision block 504 based on the number of arm blobs found. If zero arm blobs are found, 504-0, the arm tracking engine 250 returns a result of no arms and waits for the next frame of image depth data. A situation where zero arm blobs can be found happens when the subject's arms are kept extremely close to the torso, and there is insufficient resolution from the sensor in order to distinguish between the arms and the torso.

If one arm blob is found, 504-1, the process continues to 510 where the arm tracking engine 250 uses ad hoc methods to determine whether the arm blob found is the subject's right or left arm. The ad hoc method includes extracting image depth data from the arm blob to determine whether the arm blob corresponds to a right arm or a left arm. If the results using the extracted image depth data are inconclusive, additional image depth data is extracted from the arm blob and this process continues until a determination can be made. The process then continues to 512 where the arm tracking engine 250 determines, using ad hoc methods, where the subject's hand and elbow joints are, based on whether the arm blob has been identified as a right or a left arm. The ad hoc method for determining the locations of hand and elbow joints can similarly use image depth data extracted from the arm blob and continue to extract data until it can be determined where the joints are located. In one embodiment, an IK solver can provide additional information which the arm tracking engine 250 can use to identify and process the arm blob. For example, certain configurations of the hand and elbow joints are not possible for a naturally articulated human figure, and the IK solver is used to identify these impossible configurations.

If two arm blobs are found, 504-2, the process continues to 506 where the arm tracking engine 250 uses ad hoc methods to determine which blob corresponds to the subject's left arm and which blob corresponds to the subject's right arm. The process then continues to 508, where the arm tracking engine 250 determines the location of the hand and elbow joint for each arm, using the ad hoc methods described above and the image depth data from the arm blobs. In one embodiment, an IK solver can provide additional information which the arm tracking engine 250 can use to identify and process the arm blobs.

FIG. 7 is a block diagram of an example tracking system 700 using a gesture classification method. The tracking system 700 can be incorporated into an interactive system, for example, a video game system. The depth sensor 710 is used to capture a subject's movements. The depth sensor 710 can take simultaneous color and depth images of the subject, and the images are sent to the processor 720 for processing, as depicted by the arrow in the diagram.

The processor 720 performs the techniques described above, corresponding to the various engines of the tracking system 200, to create a model of the subject. The three-dimensional model created using these techniques includes the color information and is subsequently stored in the memory 730 for later processing. When a minimum number of images have been acquired, processed, and stored, the processor 720 compares the movements of the subject, based on the stored images, with gestures from a gesture database 740. The processor 720 calculates a similarity measure between the stored images and the gestures from the gesture database 740. The processor 720 then identifies the gesture from the gesture database 740 that has the highest similarity measure. The processor 720 can then cause the gesture to be displayed to the user on display 750. In one embodiment the processor causes the memory 730 to delete the acquired images, and the depth sensor 710 to acquire additional images. The gesture recognition process can then be repeated.

In one embodiment, the processor 720 also runs the interactive program which is displayed to the user through a display 750. The display 750 presents an image of the subject performing the gesture identified by the processor 720. The image of the subject is incorporated into the virtual environment of the interactive program which is also presented by display 750.

FIG. 8 is a block diagram of an example tracking system and gesture classification system 800 incorporated into an interactive program accessed by multiple players over a network.

Multiple players may access the same interactive program from different locations. FIG. 8 shows three separate sites 860-1, 860-2, and 860-N from which users access the same virtual environment, but any number of users from any number of sites may participate in the interactive program. Each site 860-1, 860-2, and 860-N has depth sensor equipment 810-1, 810-2, and 810-N which take simultaneous color and depth images of a user at that location, and the images are sent to the processor 820, over network 870, for processing. In the preferred embodiment, if more than one user is at the same site, each user is tracked by a separate depth sensor. All of the users at the same site may share a display or have their own individual displays 850-1, 850-2, and 850-N. However, all the displays 850 are capable of showing images of all the users at the different sites participating in the same virtual environment.

The images obtained by the depth sensor equipment 810-1, 810-2, and 810-N from the different sites 860-1, 860-2, and 860-N are sent over a network 870 to the processor 820. While the processor 820, memory 830, and gesture database 840 are shown in FIG. 8 as being located remotely from the user sites 860-1, 860-2, and 860-N, any of the processor, memory, and/or gesture database can be located at any of the sites. The processor 820, memory 830, and the gesture database 840 function in the same manner as described above, but with multiple users participating in the same interactive program. The processor 820 processes the images captured for each user. In one embodiment, the processor 820 can have sub-processors dedicated to individual users, and each sub-processor can access an independent memory within the memory 830. It will be apparent to a person skilled in the art that different hardware structures may implement the functions of the processor 820 and the memory 830 to perform the process efficiently.

In one embodiment, the processor 820 also runs the interactive program which the users are experiencing virtually through the displays 850-1, 850-2, and 850-N. The images of all of the users are incorporated into the virtual environment of the interactive program which is presented by each display 850-1, 850-2, and 850-N. Signals are sent by the processor 820 to the displays 850-1, 850-2, and 850-N over the network 870.

FIG. 9 is a block diagram of an example tracking system and gesture classification system incorporated into an interactive program accessed by a player over a network. The system of FIG. 9 includes a local system 900 having a depth sensor 910, a processor 920, a memory 930, a gesture database 940, and a display 950. The local system 900 connects to an interactive program 960 through a network 970.

Multiple players can access the same interactive program 960 from different locations. FIG. 9 shows one local system connected through network 970 to the interactive program 960, but any number of users from any number of sites may participate in the interactive program. The local system 900 includes depth sensor equipment 910 which can take simultaneous color and depth images of a user at that location. The images are sent to the processor 920 for processing. The local processor 920, memory 930, and gesture database 940 function in the same manner as described above. The local system 900 creates a model of the subject, can track the movements of the subject, and/or recognize gestures by comparison to gestures in the gesture database. The processed image depth data (e.g., the location of the subject) is then sent to the interactive program 960 through the network 970. It will be apparent to a person skilled in the art that different hardware structures may implement the functions of the processor 920 and the memory 930 to perform the process efficiently.

In the example of FIG. 9, the interactive program, which the user is experiencing virtually through the display 950, is processed at a remote location and accessed through the network 970. The locally processed images of all of the users are incorporated into the virtual environment of the interactive program 960 which is sent through the network 970 and presented by the display 950.

Unless the context clearly requires otherwise, throughout the description and the claims, the words “comprise,” “comprising,” and the like are to be construed in an inclusive sense (i.e., to say, in the sense of “including, but not limited to”), as opposed to an exclusive or exhaustive sense. The words “herein,” “above,” “below,” and words of similar import, when used in this application, refer to this application as a whole and not to any particular portions of this application. Where the context permits, words in the above Detailed Description using the singular or plural number may also include the plural or singular number respectively. The word “or,” in reference to a list of two or more items, covers all of the following interpretations of the word: any of the items in the list, all of the items in the list, and any combination of the items in the list.

The above Detailed Description of examples of the invention is not intended to be exhaustive or to limit the invention to the precise form disclosed above. While specific examples for the invention are described above for illustrative purposes, various equivalent modifications are possible within the scope of the invention, as those skilled in the relevant art will recognize. While processes or blocks are presented in a given order in this application, alternative implementations may perform routines having steps performed in a different order, or employ systems having blocks in a different order. Some processes or blocks may be deleted, moved, added, subdivided, combined, and/or modified to provide alternative or subcombinations. Also, while processes or blocks are at times shown as being performed in series, these processes or blocks may instead be performed or implemented in parallel, or may be performed at different times. Further any specific numbers noted herein are only examples. It is understood that alternative implementations may employ differing values or ranges.

The various illustrations and teachings provided herein can also be applied to systems other than the system described above. The elements and acts of the various examples described above can be combined to provide further implementations of the invention.

Any patents and applications and other references noted above, including any that may be listed in accompanying filing papers, are incorporated herein by reference. Aspects of the invention can be modified, if necessary, to employ the systems, functions, and concepts included in such references to provide further implementations of the invention.

These and other changes can be made to the invention in light of the above Detailed Description. While the above description describes certain examples of the invention, and describes the best mode contemplated, no matter how detailed the above appears in text, the invention can be practiced in many ways. Details of the system may vary considerably in its specific implementation, while still being encompassed by the invention disclosed herein. As noted above, particular terminology used when describing certain features or aspects of the invention should not be taken to imply that the terminology is being redefined herein to be restricted to any specific characteristics, features, or aspects of the invention with which that terminology is associated. In general, the terms used in the following claims should not be construed to limit the invention to the specific examples disclosed in the specification, unless the above Detailed Description section explicitly defines such terms. Accordingly, the actual scope of the invention encompasses not only the disclosed examples, but also all equivalent ways of practicing or implementing the invention under the claims.

While certain aspects of the invention are presented below in certain claim forms, the applicant contemplates the various aspects of the invention in any number of claim forms. For example, while only one aspect of the invention is recited as a means-plus-function claim under 35 U.S.C. §112, sixth paragraph, other aspects may likewise be embodied as a means-plus-function claim, or in other forms, such as being embodied in a computer-readable medium. (Any claims intended to be treated under 35 U.S.C. §112, ¶6 will begin with the words “means for.”) Accordingly, the applicant reserves the right to add additional claims after filing the application to pursue such additional claim forms for other aspects of the invention. 

What is claimed is:
 1. A method performed by a processor comprising: receiving, at the processor, image depth data, wherein the image depth data includes depth data of a subject to be modeled; locating a trunk of the subject from the image depth data and creating a three-dimensional (3D) model of the trunk of the subject; locating a head of the subject from the image depth data and creating a 3D model of the head of the subject; using the 3D models of the trunk and the head of the subject to remove a subset of data from the image depth data corresponding to the trunk and the head of the subject; and using remaining image depth data to locate an extremity of the subject.
 2. The method of claim 1, wherein the 3D model of the trunk of the subject is a parametric cylinder model wherein parameters of a cylinder of the parametric cylinder model are based on the image depth data through a least-squares approximation.
 3. The method of claim 1, wherein the 3D model of the trunk of the subject is a non-parametric model.
 4. The method of claim 1, wherein using remaining image depth data to locate the extremity of the subject comprises: detecting a blob, from the remaining image depth data, that corresponds to an arm; determining whether the blob corresponds to a right arm or a left arm; and calculating where a hand and an elbow are located based at least on the blob.
 5. The method of claim 4, wherein an inverse kinematics solver is used to determine whether the blob corresponds to the right arm or the left arm and to calculate where the hand and the elbow are located.
 6. The method of claim 4 further comprising tracking a location of the subject in a sequence of images, wherein each image has its own image depth data,
 7. The method of claim 6 further comprising recognizing a gesture performed by the subject, wherein recognizing a gesture includes storing a plurality of locations of the subject and comparing the plurality of locations of the subject to gestures in a gesture database.
 8. The method of claim 1 wherein the subject is a human.
 9. The method of claim 1 wherein the subject is an animal.
 10. A system comprising: an image sensor for acquiring image depth data; a background engine configured to create a model of an image background from the image depth data; a subject manager configured to determine a subset of the image depth data that corresponds to a subject; and a subject tracking engine communicatively coupled to the image sensor, the background engine, and the subject manager, wherein the subject tracking engine is configured to: create a three-dimensional (3D) model of a torso and a head of a subject based on the model of the image background and the subset of the image depth data; and locate an extremity of the subject by using at least the 3D model of the torso and the head of the subject and the subset of the image depth data.
 11. The system of claim 10, wherein the image sensor acquires image depth data for a plurality of sequential images, and the subject tracking engine comprises a two-dimensional torso tracking engine configured to determine and track a torso location of the subject in the sequential images.
 12. The system of claim 11, wherein the subject tracking engine further comprises a pelvis locating engine configured to determine a pelvis location of the subject based at least on the torso location from the two-dimensional torso tracking engine.
 13. The system of claim 12, wherein the subject tracking engine further comprises a 3D torso tracking engine configured to create and track the 3D model of the torso of the subject in the sequential images based on the image depth data and the torso location.
 14. The system of claim 10, wherein the 3D model of the torso of the subject s a parametric cylinder model.
 15. The system of claim 14, wherein parameters of a cylinder of the parametric cylinder model are computed using a least-squares approximation based on image depth data corresponding to the torso.
 16. The system of claim 13, wherein the 3D model of the torso of the subject is a non-parametric model.
 17. The system of claim 14, wherein the subject tracking engine further comprises a head tracking engine configured to locate and track the head of the subject in the sequential images based on the image depth data and the 3D model of the torso of the subject.
 18. The system of claim 17, wherein the subject tracking engine further comprises an arm tracking engine configured to locate and track an arm of the subject in the sequential images based on the image depth data, the 3D model of the torso of the subject, and the location of the head of the subject.
 19. The system of claim 18, wherein the arm tracking engine is configured to track the arm of the subject based upon a number of arms identified in the image depth data.
 20. The system of claim 18, wherein the subject tracking engine further comprises a leg tracking engine configured to locate and track the legs of the subject in the sequential images based on the image depth data and the location of the torso, the pelvis, the head, and arms of the subject.
 21. A system for modeling a subject comprising: means for acquiring image depth data; means for creating a model of an image background from the image depth data; and means for creating a 3D model of a torso and a head of the subject based on the model of the image background, and locating an extremity of the subject from the image depth data by using the 3D model of the torso and the head of the subject. 